﻿using System;
using Honeycomb.Core.Server;

namespace Honeycomb.Sample.Prime
{
    class Program
    {
        static void Main()
        {
            // Testing the Grid Server class.
            GridServer server = new GridServer();

            // Add some tasks to process.
            for (int i = 0; i < 15; i++)
            {
                int start = new Random().Next(100000, 200000);
                server.AddTask(new PrimeTask(start, start + 10000));
            }

            server.Start();
        }
    }
}
